﻿using OptimizationToolbox;
namespace GearSynth
{
    internal class fixedMassObjective : IObjectiveFunction, IDifferentiable
    {
        private readonly double value;
        internal fixedMassObjective(double value)
        {
            this.value = value;
        }
        #region Implementation of IOptFunction

        public double calculate(double[] x)
        {
            return value;
        }

        #endregion

        #region Implementation of IDifferentiable

        public double deriv_wrt_xi(double[] x, int i)
        {
            return 0.0;
        }

        #endregion
    }
}
